package com.scgl.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 生产订单对象 scgl_order
 * 
 * @author ruoyi
 * @date 2024-10-25
 */
public class ScglOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 生产订单编号 */
    private Long orderId;

    /** 销售单号 */
    @Excel(name = "销售单号")
    private String orderSell;

    /** 交付日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交付日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderDay;

    /** 优先级,1普通,2紧急3非常紧急 */
    @Excel(name = "优先级,1普通,2紧急3非常紧急")
    private Long orderLevel;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String productCode;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String unit;

    /** 规格 */
    @Excel(name = "规格")
    private String specification;

    /** 计划产量 */
    @Excel(name = "计划产量")
    private Long plannedQuantity;

    /** 生产状态 */
    @Excel(name = "生产状态")
    private Long productionStatus;

    /** 已生产数量 */
    @Excel(name = "已生产数量")
    private Long producedQuantity;

    /** 客户 */
    @Excel(name = "客户")
    private String customerName;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOrderSell(String orderSell) 
    {
        this.orderSell = orderSell;
    }

    public String getOrderSell() 
    {
        return orderSell;
    }
    public void setOrderDay(Date orderDay) 
    {
        this.orderDay = orderDay;
    }

    public Date getOrderDay() 
    {
        return orderDay;
    }
    public void setOrderLevel(Long orderLevel) 
    {
        this.orderLevel = orderLevel;
    }

    public Long getOrderLevel() 
    {
        return orderLevel;
    }
    public void setProductCode(String productCode) 
    {
        this.productCode = productCode;
    }

    public String getProductCode() 
    {
        return productCode;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }
    public void setPlannedQuantity(Long plannedQuantity) 
    {
        this.plannedQuantity = plannedQuantity;
    }

    public Long getPlannedQuantity() 
    {
        return plannedQuantity;
    }
    public void setProductionStatus(Long productionStatus) 
    {
        this.productionStatus = productionStatus;
    }

    public Long getProductionStatus() 
    {
        return productionStatus;
    }
    public void setProducedQuantity(Long producedQuantity) 
    {
        this.producedQuantity = producedQuantity;
    }

    public Long getProducedQuantity() 
    {
        return producedQuantity;
    }
    public void setCustomerName(String customerName) 
    {
        this.customerName = customerName;
    }

    public String getCustomerName() 
    {
        return customerName;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setCreationTime(Date creationTime) 
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime() 
    {
        return creationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderSell", getOrderSell())
            .append("orderDay", getOrderDay())
            .append("orderLevel", getOrderLevel())
            .append("productCode", getProductCode())
            .append("productName", getProductName())
            .append("unit", getUnit())
            .append("specification", getSpecification())
            .append("plannedQuantity", getPlannedQuantity())
            .append("productionStatus", getProductionStatus())
            .append("producedQuantity", getProducedQuantity())
            .append("customerName", getCustomerName())
            .append("remark", getRemark())
            .append("creator", getCreator())
            .append("creationTime", getCreationTime())
            .toString();
    }
}
